package com.shunbo.convenient.service.impl;

import com.shunbo.convenient.dao.GroupsMapper;
import com.shunbo.convenient.service.GroupsService;
import com.shunbo.convenient.vo.Groups;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author weizhuang
 */

@Service
@Transactional
public class GroupsServiceImpl implements GroupsService {

    @Resource
    private GroupsMapper groupsMapper;

    @Override
    public Integer save(Groups obj) {
        return groupsMapper.save(obj);
    }

    @Override
    public Integer update(Groups obj) {
        return groupsMapper.update(obj);
    }

    @Override
    public Integer delete(String obj) {
        return groupsMapper.delete(obj);
    }

    @Override
    public Groups findById(String obj) {
        return groupsMapper.findById(obj);
    }

    @Override
    public List<Groups> findAll(Groups obj) {
        return groupsMapper.findAll(obj);
    }
}
